<template>
	<view class="main">
         <view class="v-infos v-box">
			 <view class="info-title">{{row.title}}</view>
			 <view class="auther-time">发布者：{{row.publisher}} 发布时间：{{row.createTime}}</view>
			 <view class="text-info" v-html="row.infoContent"></view>
		 </view>
		 
	</view>
</template>

<script>
import Index from "@/common/index-model.js"
let index = new Index();
let that = null;
export default {
	data() {
		return {
			row:{},
			id:0
		}
	},
	onLoad(opt) {
		this.getRowInfo(opt.id)
		this.id=opt.id
	},
	onShareAppMessage(res) {
		if (res.from === 'button') { // 来自页面内分享按钮
		}
		return {
			title: this.row.title,
			path: '/pagesC/newsinfo/info?id=' + this.id,
			imageUrl: 'http://xgr.oss-cn-hangzhou.aliyuncs.com/icon/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230327160119.png'
		}
	},
	onShareTimeline(res) {
		return {
			title: this.row.title,
			query:'/pagesC/newsinfo/info?id=' + this.id,
			imageUrl: 'http://xgr.oss-cn-hangzhou.aliyuncs.com/icon/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20230327160119.png'
		}
	},
	methods: {
		getRowInfo(id) {
			let url="client/public/xgrinfomation/detail/?id="+id
			index.getPublicUserMember({},url,'get',res=>{
				if(res.data.code == 200 && res.data.success){
					this.row = res.data.result
				}else{
					this.row={}
				}
			})
		}
	}
}	
</script>

<style>
	@import url("@/static/css/publics.css");
	@import url("@/static/css/news.css");	
</style>